package com.yun2.bms.service;

import com.yun2.bms.model.Lend;

import java.util.List;

/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/6/15
 */

public interface ILendService {
    Integer getLendedNumberByUserId(int id);

    Integer getLendedNumberByBookId(int bookId);

    int add(int userId, int bookId);

    boolean bookIsLendedByUserId(int bookId, int userId);

    List<Lend> getAllByUserId(int userId);
}
